package com.swinw.asumall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.swinw.asumall.product.entity.SpuInfoEntity;
import com.swinw.asumall.product.vo.SkuItemVo;
import com.swinw.common.utils.PageUtils;
import com.swinw.asumall.product.entity.SkuInfoEntity;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author 罗义华
 * @email 2407550328@qq.com
 * @date 2020-10-04 12:33:33
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<SkuInfoEntity> selectSkuInfoBySpuId(Long spuId);

    SkuItemVo getSaleItemBySkuId(Long skuId) throws ExecutionException, InterruptedException;

    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

